package com.wanmait.wisdom.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wanmait.wisdom.entity.House;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* Created by Mybatis Generator 2024/04/27
*/
@Mapper
public interface HouseMapper extends BaseMapper<House> {
    int deleteByPrimaryKey(Integer id);

    int insert(House record);

    int insertSelective(House record);

    House selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(House record);

    int updateByPrimaryKey(House record);
    Page<House> selectPageList(Page<House> page, @Param("house") House house);

    List<House> selectByUnitId(Integer UnitId);

    Integer findPersonSizeById(Integer id);

    void updatePersonSize( @Param("id") Integer houseId, @Param("personSize") Integer personSize);
    Integer getUnsoldCount();

    Integer getRentOutCount();

    Integer getSoldOutCount();
}
